package com.health.mapp.impl;

import com.health.db.service.user.IStuffScheduleService;
import com.health.mapp.bean.Header;
import com.health.mapp.bean.QueryAvailableTimeReq;
import com.health.mapp.bean.QueryAvailableTimeResp;
import com.health.mapp.utils.Response;
import com.health.mapp.utils.ResultCode;

/**
 *  查询医生可预约时间
 * @author HiRoad
 *
 */
public class QueryAvailableTimeImpl implements ActionInterface {
	//private IRegisterOrderService registerOrderService  ;
	
	private  IStuffScheduleService stuffScheduleService;
	
	@Override
	public Response execute(Header header, Object reqBean) throws Exception {
		
		QueryAvailableTimeReq req=(QueryAvailableTimeReq) reqBean;
		QueryAvailableTimeResp _resp= new QueryAvailableTimeResp();
		
		
		_resp.setOrderTimelist(stuffScheduleService.selectAllStuff());
		
		
		_resp.setErrorCode(ResultCode.OPERATION_SUCCESS);
		_resp.setErrorMsg(ResultCode.OPERATION_SUCCESS_NOTE);
 
		return _resp;
	}

	/**
	 * @return the stuffScheduleService
	 */
	public IStuffScheduleService getStuffScheduleService() {
		return stuffScheduleService;
	}

	/**
	 * @param stuffScheduleService the stuffScheduleService to set
	 */
	public void setStuffScheduleService(IStuffScheduleService stuffScheduleService) {
		this.stuffScheduleService = stuffScheduleService;
	}

}
